package org.pine.manager.query;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.pine.model.enums.StatusEnum;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户查询实体
 *
 * @author pine
 * @version v1.0
 * @since 2025-04-12 15:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserQuery extends BaseQuery {
    @Serial
    private static final long serialVersionUID = -570491264837777466L;

    /**
     * 登录账号
     */
    private String loginAccount;

    /**
     * 用户名
     */
    private String username;

    /**
     * 启用时间(start)
     */
    private LocalDateTime enableTimeStart;

    /**
     * 启用时间(end)
     */
    private LocalDateTime enableTimeEnd;

    /**
     * 停用时间(start)
     */
    private LocalDateTime disableTimeStart;

    /**
     * 停用时间(end)
     */
    private LocalDateTime disableTimeEnd;

    /**
     * 状态:0=无效,1=有效
     */
    private StatusEnum status;

    /**
     * 状态集合，1=启用,0=禁用
     */
    private List<StatusEnum> statusList;
}
